<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

// Route::group(['prefix'=>'Home'],function(){
//     $controller='IndexController';
//     Route::post('Index/getExpressList',['as'=>'getExpressList','uses'=>$controller.'getExpressList']);
// });
Route::group(['namespace'=>'Home'],function(){
    $controller='IndexController@';

    Route::post('Home/Index/getExpressList',['as'=>'getExpressList','uses'=>$controller.'getExpressList']);
    Route::get('Home/Index/test',['as'=>'test','uses'=>$controller.'test']);
    Route::get('Home/Index/send',['as'=>'send','uses'=>$controller.'send']);
    Route::get('Home/Index/users',['as'=>'users','uses'=>$controller.'users']);


  //  Route::get('Home/Index/broadcastTest',['as'=>'broadcastTest','uses'=>$controller.'broadcastTest']);
   Route::get('Home/Mongo/queryMongoData',['as'=>'queryMongoData','uses'=>'MongoController@queryMongoData']);
    Route::get('Home/Mongo/testMongo',['as'=>'testMongo','uses'=>'MongoController@testMongo']);
    Route::get('Home/Mongo/querySubList',['as'=>'querySubList','uses'=>'MongoController@querySubList']);
    Route::get('Home/Mongo/selfDefinedQuery',['as'=>'selfDefinedQuery','uses'=>'MongoController@selfDefinedQuery']);
    Route::get('Home/Mongo/polymerization',['as'=>'polymerization','uses'=>'MongoController@polymerization']);
    Route::get('Home/Mongo/updateData',['as'=>'updateData','uses'=>'MongoController@updateData']);
    Route::get('Home/Mongo/getDataList',['as'=>'getDataList','uses'=>'MongoController@getDataList']);
    Route::get('Home/Mongo/getCount',['as'=>'getCount','uses'=>'MongoController@getCount']);
    Route::get('Home/Mongo/getPageList',['as'=>'getPageList','uses'=>'MongoController@getPageList']);
    Route::get('Home/Mongo/updateDb',['as'=>'updateDb','uses'=>'MongoController@updateDb']);
    Route::get('Home/Mongo/insertDb',['as'=>'insertDb','uses'=>'MongoController@insertDb']);
    Route::get('Home/Mongo/deleteDb',['as'=>'deleteDb','uses'=>'MongoController@deleteDb']);
    Route::get('Home/Mongo/getIncId',['as'=>'getIncId','uses'=>'MongoController@getIncId']);
});
//注册mongo的资源路由
/*Route::resource('Home/Mongo','MongoController',['except' => [
    'create', 'store', 'update', 'destroy','show']]);
*/





Route::get('/test',function(){
    echo '123';
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');
